package com.example.code.class02;

/**
 * @Date 2022/7/16
 * @Created by Jonathan
 */
public class Code02_Cola {
    // todo  这个题目非常考验coding能力

    public static void main(String[] args) {
        final int up = up(10, 3);
        System.out.println(up);
    }


    /**
     * a/x 向上取整
     * (a+(x-1))/x
     */
    private static int up(int a, int x) {
        return (a + (x - 1)) / x;
    }
}
